home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / restw < prev    next >
Text File  |  2001-03-21  |  725b  |  24 lines

  1. Synopsis:
  2.    $restw(<count> <word list>)
  3.  
  4. Technical:
  5.    The $restw() function returns the given list with the specified number
  6.    of words at the beginning of the input list removed.
  7.  
  8. Practical:
  9.    This function is mostly useful when you know you want to always remove
  10.    the first few words from an input string, regardless of what they are,
  11.    and when there are a varying number of total arguments.
  12.    
  13. Returns:
  14.    input list with given number of leading words removed
  15.  
  16. Examples:
  17.    $restw(2 hello there how are you?)       returns "how are you?"
  18.    $restw(-1 hello there how are you?)      returns nothing
  19.    $restw(6 hello there how are you?)       returns nothing
  20.  
  21. See Also:
  22.    leftw(6); rightw(6)
  23.  
  24.